# -*- coding: utf-8 -*-

from wtforms import form
from wtforms import StringField

from app.forms.base import JsonSerializableForm, ObjectIdType
from app.utils import valid_object_id


class OrderKwargsForm(JsonSerializableForm):
    device_id = StringField()
    order_id = StringField(validators=[ObjectIdType(allow_blank=True)])
    plan_id = StringField(validators=[ObjectIdType(allow_blank=True)])